/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.me.hello;

/**
 *
 * @author Ana
 */
public class MinelayerShip {

	private int xPos,yPos;
        private int defaultPosX, defaultPosY;
	
	public MinelayerShip(int defaultPositionX, int defaultPositionY)
        {
            this.defaultPosX = defaultPositionX;
            this.defaultPosY = defaultPositionY;
            this.setPos(defaultPositionX, defaultPositionY);
	}
	
	public void setPos(int x, int y){
            this.xPos = x;
            this.yPos = y;
	}
	
	public int getX(){
            return this.xPos;
	}
	
	public int getY(){
            return this.yPos;
	}
		
	public void reset(){
            //Volver a la posicion inicial
            setPos(this.defaultPosX,this.defaultPosY);
		
	}
}
